package com.atguigu.yygh.cmn.service;

import com.atguigu.yygh.model.cmn.Dict;
import com.atguigu.yygh.vo.cmn.DictEeVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 组织架构表 服务类
 * </p>
 *
 * @author atguigu
 * @since 2022-11-03
 */
public interface DictService extends IService<Dict> {

    List<Dict> findChildData(Long id);

    void downLoad(HttpServletResponse response) throws IOException;

    void upLoad(MultipartFile file) throws IOException;

    String getName(String parentDictCode, Long value);

    List<Dict> findProvince(String province);

    List<Dict> findCity(Long parentId);

    List<Map<String,String>> findByDictCode(String dictCode);

    List<DictEeVo> findChildDataByParentId(Long parentId);
}
